import mockjs from "mockjs"

const usersList = mockjs.mock({
    "users|50":[
        {
            username:"@natural( 40000, 200000 )",
            password:"@natural( 100, 20000 )",
            id:"@id"
        }
    ]
})

export default{
    'get /api/getuser/:username/:password':(req:any,res:any)=>{
        console.log(req.params);
        
        res.status(200).json({
            code:200,
            msg:'查询成功',
            data:usersList
        })
    }
}